<!DOCTYPE html>
<html>
<head><meta name="viewport" content="width=device-width,minimum-scale=1"></head>
<body>
<a download="suggested-filename" id="downloadlink" href="">link</a>
<script>
  var anchorElement = document.querySelector('a[download]');
  url = window.location.href;
  anchorElement.href = url.substr(url.indexOf('=') + 1);
  if (url.indexOf('noclick') == -1)
    anchorElement.click();
</script>
</body>
</html>
